package com.example.mybatisplus.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.mybatisplus.config.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 系统参数(Config)表实体类
 *
 * @author 宋义州
 * @since 2023-09-02 09:21:53
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_config")
@Schema(description = "系统参数")
public class Config extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -14455623150085941L;

    @TableId(value = "id")
    @Schema(description = "主键")
    private Long id;

    @TableField("name")
    @Schema(description = "名称")
    private String name;

    @TableField("code")
    @Schema(description = "编码")
    private String code;

    @TableField("value")
    @Schema(description = "参数值")
    private String value;

    @TableField("introduce")
    @Schema(description = "描述")
    private String introduce;

    @TableField("status")
    @Schema(description = "启用状态(0：启用、1：禁用)")
    private Integer status;

}

